import axios from "axios";
axios.defaults.baseURL = "https://sanlec-api.shinho.net.cn/v1";

// 获取公司背景
export const getCompany = params => {
  return axios({
    url: "/journalism/background_set",
    method: "get",
    params
  });
};

// 获取门店信息
export const fetchStore = params => {
  return axios({
    url: "/salesroom/room_show",
    method: "get",
    params
  });
};

// 获取首页banner列表
export const fetchBanner = params => {
  return axios({
    url: "/banner/img_show",
    method: "get",
    params
  });
};

// 获取新闻列表
export const fetchNews = params => {
  return axios({
    url: "/journalism/journalism_see",
    method: "get",
    params
  });
};

// 获取产品列表
export const productGet = params => {
  return axios({
    url: "/journalism/product",
    method: "get",
    params
  });
};

// 获取产品列表
export const upload = params => {
  return axios({
    url: "/journalism/point",
    method: "post",
    data: params
  });
};
